import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/login',
    name: 'login',
    component: ()=>import("../views/login.vue")
  },
  {
    path: '/',
    name: 'Home',
    component: Home,
    children:[
      {
        path: '/tap',
        name: 'tap',
        component: ()=>import("../views/tap.vue")
      },
      {
        path: '/xue',
        name: 'xue',
        component: ()=>import("../views/xue.vue")
      },
      {
        path: '/hou',
        name: 'hou',
        component: ()=>import("../views/hou.vue")
      },
    ]
  },
  
 
  
]

const router = new VueRouter({
  routes
})

export default router
